package run.halo.app.event.bark;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.context.ApplicationEvent;
import run.halo.app.model.params.BarkParam;

/**
 * @author yangxin
 * @date 2019/12/13
 */
public class BarkEvent extends ApplicationEvent {

    private BarkParam barkParam;

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public BarkEvent(Object source,BarkParam barkParam) {
        super(source);
        this.barkParam = barkParam;
    }

    public BarkParam getBarkParam() {
        return barkParam;
    }
}